package com.azier.kapacitor.script.node.nodebind;

import com.azier.kapacitor.script.node.FlattenNode;
import com.azier.kapacitor.script.node.Node;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/

/**
Flatten points with similar times into a single point.
**/

/**
将具有相似时间的点展平为单个点。
**/
public interface FlattenNodeBind extends Node {
    /**
    Flatten points with similar times into a single point.
    **/
    /**
    将具有相似时间的点展平为单个点。
    **/
    default FlattenNode flatten(){
        FlattenNode nextNode = new FlattenNode();
        this.setNextNode(nextNode);
        nextNode.zetHeadNode(this.getHeadNode());
        return nextNode;
    }
}